﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Vinetlife.Master" AutoEventWireup="true"
    EnableViewState="false" CodeBehind="Article.aspx.cs" Inherits="VINETLIFE.Article" %>

<%@ Register Src="Module/ucLeftMenuProductCate.ascx" TagName="ucLeftMenuProductCate"
    TagPrefix="uc1" %>
<%@ Register Src="Module/ucFacebook.ascx" TagName="ucFacebook" TagPrefix="uc2" %>
<%@ Register Src="Module/ucVnSuportVinetlife.ascx" TagName="ucVnSuportVinetlife" TagPrefix="uc3" %>
<%@ Register Src="Module/ucVnAboutVinetlife.ascx" TagName="ucVnAboutVinetlife" TagPrefix="uc4" %>
<%@ Register Src="Module/ListMenuNews.ascx" TagName="ListMenuNews" TagPrefix="uc6" %>
<%@ Register Src="Module/AddButton.ascx" TagName="AddButton" TagPrefix="uc7" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="main-container">
        <div class="main-container-inner">
            <div id="breadcrumb">
                <ul class="crumbs">
                     <asp:Literal runat="server" ID="ltrBreadcrumbs"></asp:Literal>
                </ul>
            </div>
            <div class="t-content-wrap">
                <div class="main-container-inner-left">
                    <%-- <div class="menu-content-wrap">
                          <uc2:ucFacebook runat="server" ID="ucFacebookX" />
                         </div> --%>
                    <uc3:ucVnSuportVinetlife ID="ucVnSuportVinetlife1" runat="server" />
                    <uc4:ucVnAboutVinetlife ID="ucVnAboutVinetlife1" runat="server" />
                    <uc6:ListMenuNews ID="ListMenuNews1" runat="server" />
                </div>
                <div class="main-container-inner-right">

                    <asp:Repeater runat="server" ID="rptArticleDetail">
                        <ItemTemplate>

                            <div class="news-box">
                                <div class="article-box">
                                    <h2 class="a-title">
                                        <%#Eval("Title") %>
                                    </h2>
                                    <p class="a-date">
                                        <%#Eval("CreateDate","{0:dd-MM-yyyy}")%>
                                    </p>
                                    <p class="a-desc">
                                        <%#Eval("Description") %>
                                    </p>
                                    <div class="a-detail">
                                        <%#Eval("ArticleDetail") %>
                                    </div>
                                </div>
                            </div>
                        </ItemTemplate>
                    </asp:Repeater>
                    <div style="clear: both; height: 20px;">
                    </div>
                    <div class="tag" style="margin-left: 20px;">
                        <ul>

                            <%
                                string[] split = Tags.Split(new Char[] { ',', '.' });
                                if (Tags != null && Tags != "")
                                {
                            %>
                            <li style="float: left; padding: 3px 1px; border-radius: 3px; font-size: 12px; font-weight: bold; margin: 2px 3px;">Từ khóa:</li>
                            <%
                            foreach (string s in split)
                            {
                            %>
                            <li style="float: left; padding: 3px 1px; border-radius: 3px; margin: 2px 1px; background: #b0f276;"><a href="/Search.aspx?keyword=<%=s.ToString().Trim().Replace(" ", "-") %>" style="padding: 10px; font-size: 12px; font-weight: bold; color: #3a7704;"><%=s.ToString().Trim()%></a></li>
                            <%
                         }
                        }
                            %>
                        </ul>
                    </div>
                    <div style="clear: both;">
                    </div>
                    <div class="face" style="margin: 20px 0px 0px 20px;">
                        <uc7:AddButton ID="AddButton1" runat="server" />
                    </div>
                    <div class="other-info">
                        <span style="font-weight: bold; color: #CC0D01">CÁC BÀI VIẾT KHÁC</span>
                        <asp:Repeater ID="rptOther" runat="server">
                            <ItemTemplate>
                                <br />
                                <a class="other" href="/bai-viet/<%#FriendlyUrl(Eval("Title").ToString()) %>-<%#Eval("ArticleID")%>">+
                            <%#Eval("Title")%>
                                </a>
                            </ItemTemplate>
                        </asp:Repeater>
                    </div>

                </div>
            </div>
        </div>
    </div>
</asp:Content>
